//---------------------------------------------------------------------------

#ifndef KART_PRIB_VDGOH
#define KART_PRIB_VDGOH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "IBCustomDataSet.hpp"
#include <DB.hpp>
#include "DBCtrlsEh.hpp"
#include "cxButtons.hpp"
#include <ActnList.hpp>
#include <Menus.hpp>
#include "cxCalendar.hpp"
#include "cxDropDownEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
#include <ComCtrls.hpp>
#include "cxCalc.hpp"
#include "cxDBEdit.hpp"
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrKART_PRIB_VDGO : public TForm
{
__published:	// IDE-managed Components
	TcxGroupBox *gbMarka_Model;
	TLabel *Label1;
	TLabel *Label2;
	TLabel *Label3;
	TLabel *Label4;
	TDBLookupComboBox *cbMARKA;
	TDBLookupComboBox *cbMODEL;
	TEdit *edTIP;
	TEdit *edKOD_TIP;
	TEdit *edKOD_VID;
	TEdit *edVID;
	TcxGroupBox *gbPRIB1;
	TLabel *Label5;
	TLabel *Label6;
	TDBText *labProizv;
	TLabel *Label7;
	TLabel *Label8;
	TDBLookupComboBox *cbMESTO;
	TcxGroupBox *gbLIC;
	TLabel *Label12;
	TLabel *Label11;
	TEdit *edLIC;
	TcxGroupBox *gbSTO;
	TLabel *Label9;
	TLabel *Label10;
	TDBLookupComboBox *cbTO;
	TcxGroupBox *gbHAR_PRIB;
	TLabel *Label13;
	TDBText *labRAST;
	TLabel *Label14;
	TDBText *labRAZR;
	TLabel *Label15;
	TLabel *labRezba;
	TLabel *Label17;
	TcxGroupBox *gbPower;
	TLabel *Label18;
	TLabel *labArea;
	TcxButton *btSave;
	TActionList *ActionList1;
	TAction *Save;
	TLabel *labPOWER;
	TEdit *edAREA;
	TEdit *edPLOMB;
	TEdit *edZAV_NOM;
	TcxDateEdit *dtpDAT_VIP;
	TAction *OTKL_PRIB;
	TcxGroupBox *gbOTKL_PRIB;
	TLabel *Label16;
	TLabel *Label19;
	TComboBox *cbPRITH_OTKL;
	TcxButton *btOtklPrib;
	TLabel *Label20;
	TComboBox *cbSPOSOB_OTKL;
	TLabel *labPOK_SH;
	TEdit *edPOK;
	TcxDateEdit *dtpDAT_UST;
	TLabel *labDAT_POV;
	TDateTimePicker *dtpDAT_POV;
	TComboBox *cbISPOLN;
	TcxButton *cxButton1;
	TcxButton *cxButton2;
	TcxButton *cxButton3;
	TcxDateEdit *dtpDAT_OTKL;
	TIBCQuery *dsetPRIB;
	TIBCQuery *dsetMarka;
	TIBCQuery *dsetMODEL;
	TIBCQuery *dsetMESTO;
	TIBCQuery *dsetTO;
	TIBCQuery *dsetKOD_PRIB;
	TIBCQuery *dsetKOTEL;
	TIBCQuery *dsetCounter;
	TIBCQuery *dsetPLITA;
	TIBCQuery *dsetBPG;
	TIBCQuery *dsetOTHER_PRIB;
	TIBCQuery *dsetF_PRIB;
	TIBCQuery *IBDataSet1;
	TIBCQuery *dsetVID_RASHET;
	TIBCDataSource *dsPRIB;
	TIBCDataSource *dsMarka;
	TIBCDataSource *dsMODEL;
	TIBCDataSource *dsMESTO;
	TIBCDataSource *dsTO;
	TIBCDataSource *dsKOD_PRIB;
	TIBCDataSource *dsKOTEL;
	TIBCDataSource *dsCounter;
	TIBCDataSource *dsPLITA;
	TIBCDataSource *dsBPG;
	TIBCDataSource *dsOTHER_PRIB;
	TIBCDataSource *dsF_PRIB;
	TIBCDataSource *dsVID_RASHET;
	void __fastcall FormKeyPress(TObject *Sender, char &Key);
	void __fastcall SaveExecute(TObject *Sender);
	void __fastcall cbMARKAClick(TObject *Sender);
	void __fastcall cbMODELClick(TObject *Sender);
	void __fastcall OTKL_PRIBExecute(TObject *Sender);
	void __fastcall cbPRITH_OTKLKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dtpDAT_OTKLKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall cbSPOSOB_OTKLKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall edPOKKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall cbPRITH_OTKLChange(TObject *Sender);
	void __fastcall cxButton1Click(TObject *Sender);
	void __fastcall cxButton2Click(TObject *Sender);
	void __fastcall cxButton3Click(TObject *Sender);
private:	// User declarations
public:		// User declarations
int TIP,VID,KOD_PRIB,NOM_ABON,Stat,STAT_OTKL,PRIZ,KOD_GAZ,S_KART,GOR_VODA,OSHIBKA;
String PRIM;
	__fastcall TfrKART_PRIB_VDGO(TComponent* Owner);
	void __fastcall TfrKART_PRIB_VDGO::MARKA();
	void __fastcall TfrKART_PRIB_VDGO::MODEL();
	void __fastcall TfrKART_PRIB_VDGO::Obnovi();
	void __fastcall TfrKART_PRIB_VDGO::Vidimost();
	void __fastcall TfrKART_PRIB_VDGO::KOD_PRIB_SQL();
	void __fastcall TfrKART_PRIB_VDGO::Otkl_Prtib();
	void __fastcall TfrKART_PRIB_VDGO::Refresh();
	void __fastcall TfrKART_PRIB_VDGO::B_OTKL();
	void __fastcall TfrKART_PRIB_VDGO::Prith_Sposob();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrKART_PRIB_VDGO *frKART_PRIB_VDGO;
//---------------------------------------------------------------------------
#endif
